package com.xiaoyu.izf.repository;

import com.xiaoyu.izf.model.AppUpdateInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface AppUpdateInfoDao extends JpaRepository<AppUpdateInfo,Integer>, JpaSpecificationExecutor<AppUpdateInfo> {

    @Query("from AppUpdateInfo where type='android' order by appVersion desc ")
    public List<AppUpdateInfo> findAllByVersion();
}
